package com.ly.user_system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ly.user_system.code.BaseEntity;
import com.ly.user_system.detail.BaseSysUserDetail;
import com.ly.user_system.dto.BaseSysUserDTO;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;

@TableName("base_sys_user")
@Data
@AutoMappers({
        @AutoMapper(target = BaseSysUserDTO.class),
        @AutoMapper(target = BaseSysUserDetail.class)
})
public class BaseSysUser extends BaseEntity {

    @TableField("tenant_id")
    private Long tenantId;
    @TableField("department_id")
    private Long departmentId;
    @TableField("name")
    private String name;
    @TableField("username")
    private String username;
    @TableField("password")
    private String password;
    @TableField("password_v")
    private Integer passwordV;
    @TableField("nick_name")
    private String nickName;
    @TableField("head_img")
    private String headImg;
    @TableField("phone")
    private String phone;
    @TableField("email")
    private String email;
    @TableField("remark")
    private String remark;
    @TableField("status")
    private Integer status;
    @TableField("socket_id")
    private String socketId;
}